<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.nce.util.LoginUserUtil"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>聚虎 微博</title>
		<link href="${ctx}/css/jehoo.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/css/colorbox.css" rel="stylesheet" type="text/css" />
		<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
		<script src="${ctx}/js/jquery.colorbox.js" type="text/javascript"></script>
		<script src="${ctx}/js/table.js" type="text/javascript"></script>
		<script>
$(document)
		.ready(function() {
			//Examples of how to assign the ColorBox event to elements			
				$("#addKeys").colorbox( {
					iframe : true,
					width : "95%",
					height : "90%",
					opacity : 0.75,
					close : "关闭"
				});
				$("#addMblogvip").colorbox( {
					iframe : true,
					width : "95%",
					height : "90%",
					opacity : 0.75,
					close : "关闭"
				});
				$("#tips_txt").hide();
				$("#tips").hover(function(e) {
					if ($("#tips_txt").css("display") == "none") {
						$("#tips_txt").show();
					} else {
						$("#tips_txt").hide();
					}

				});

				$("a[href='${ctx}/s/search!getMblog.action']").attr("class",
						"selected");
				$("#search_form").attr("action",
						"${ctx}/s/search!getMblog.action");
						
				var url = encodeURI("${ctx}/s/goexport.action?content=mblog&words=${words}&type=<c:if test='${isTitle}'>title</c:if><c:if test='${!isTitle}'>content</c:if>");
				$(".report_indicator a").colorbox({
				href:url,
				iframe:true, 
				width:"95%", 
				height:"90%",
				opacity : 0.75
				});				

			});
</script>
	</head>
	<body>
		<div id="body" align="center">
			<div id="main" align="center">
				<div id="middle_top">
					<%@ include file="/common/menu.jsp"%>
				</div>
				<div id="middle_bottom">
					<s:if test="mblogPage.result==null || mblogPage.result.isEmpty()">
						<div class="success">
							暂无相关结果，请调整您的重点微博设置。
						</div>
					</s:if>
					<s:else>
							<div id="keyword_pagebar">
								<span class="page_indicator report_indicator"><a
									target="_blank" href="#">日报导出</a> </span>
								<span class="page_indicator"><a
									href="javascript:jumpPage(${mblogPage.totalPages})">末页</a> </span>
								<s:if test="mblogPage.hasNext">
									<span class="page_indicator"><a
										href="javascript:jumpPage(${mblogPage.nextPage})">下一页</a> </span>
								</s:if>
								<span id="page_number">${mblogPage.pageNo}</span>
								<s:if test="mblogPage.hasPre">
									<span class="page_indicator"><a
										href="javascript:jumpPage(${mblogPage.prePage})">上一页</a> </span>
								</s:if>
								<span class="page_indicator"><a
									href="javascript:jumpPage(1)">首页</a> </span>
								<span class="page_indicator">${mblogPage.pageNo}/${mblogPage.totalPages}</span>

							</div>
							<form id="mainForm" action="${ctx}/s/search!getMblog.action"
								method="post">
								<input type="hidden" name="isReport" id="isReport" value="false" />
								<input type="hidden" name="mblogPage.pageNo" id="pageNo"
									value="${mblogPage.pageNo}" />
								<input type="hidden" name="mblogPage.orderBy" id="orderBy"
									value="${mblogPage.orderBy}" />
								<input type="hidden" name="mblogPage.order" id="order"
									value="${mblogPage.order}" />
								<input type="hidden" name="words" value="${words}" />
								<c:if test="${!isTitle}">
									<input type="hidden" name="type" value="content"></input>
								</c:if>
								<c:if test="${isTitle}">
									<input type="hidden" name="type" value="title"></input>
								</c:if>

								<s:iterator status="spin" value="mblogPage.result">

									<div class="weibo_frame">
										<div class="weibo_content" align="left">
											<c:if test="${isNew=='true'}">
												<span class="news_tag">【新】</span>
											</c:if>
											<span class="weibo_name"><a
												href="http://weibo.com/${authorId}" target="_blank">${author}</a>
											</span>
											<span class="weibo_txt">${viewContent} </span>
										</div>
										<div class="weibo_toolbar">
											<span style="margin-right: 330px;"> <span
												class="weibo_toobar_txt" style="margin-right: 20px;"><a
													href="${url}" target="_blank"><s:date name="tmPost" format="yyyy-MM-dd" /></a> </span> <span
												class="weibo_toobar_txt" style="color: gray">来自</span> <span
												class="weibo_toobar_txt">${sourceSite}</span> </span>
											<span class="weibo_toobar_txt">转发(${forwordCnt})</span>
											<span class="weibo_toobar_txt" style="color: gray;">|</span>
											<span class="weibo_toobar_txt">收藏(${reservedCnt})</span>
											<span class="weibo_toobar_txt" style="color: gray;">|</span>
											<span class="weibo_toobar_txt"><a href="${url}"
												target="_blank">评论(${remarkCnt})</a> </span>
										</div>
									</div>
									<!-- repeat -->
								</s:iterator>
								<div id="keyword_pagebar">
									<span class="page_indicator report_indicator"><a
										target="_blank" href="#">日报导出</a> </span>
									<span class="page_indicator"><a
										href="javascript:jumpPage(${mblogPage.totalPages})">末页</a> </span>
									<s:if test="mblogPage.hasNext">
										<span class="page_indicator"><a
											href="javascript:jumpPage(${mblogPage.nextPage})">下一页</a> </span>
									</s:if>
									<span id="page_number">${mblogPage.pageNo}</span>
									<s:if test="mblogPage.hasPre">
										<span class="page_indicator"><a
											href="javascript:jumpPage(${mblogPage.prePage})">上一页</a> </span>
									</s:if>
									<span class="page_indicator"><a
										href="javascript:jumpPage(1)">首页</a> </span>
									<span class="page_indicator">${mblogPage.pageNo}/${mblogPage.totalPages}</span>

								</div>
							</form>
					</s:else>
				</div>
			</div>
		</div>
		<div id="bottom">
			<%@ include file="/common/footer.jsp"%>
		</div>
	</body>
</html>